var webpack = require('webpack')
var path = require('path')
var common = require('./webpack.common.js')


module.exports = {
  entry: {
    vendor:common.vendor,
    blog: ['./app/src/index.js']
  },
  output: common.extend(common.output,{
    publicPath: './build/',
  }),
  resolve: common.resolve,
  module: {
    loaders: common.loaders.concat([
      {
        test: /\.(js|jsx)$/,
        loaders: ['babel-loader','imports-loader'],
        include: path.join(__dirname, 'app/src'),
        exclude: [path.join(__dirname,'node_modules'),path.join(__dirname,'app/src/vendor')]
      }
    ])
  },
  plugins: common.plugins.concat([
    // 压缩 js
    // new webpack.optimize.UglifyJsPlugin({
    //     compress: {
    //         warnings: false
    //     }
    // })
  ])
};
